package com.wormhole.wormholemanagement.service;

import com.wormhole.wormholemanagement.entity.MedicalInsuranceRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

public interface MedicalInsuranceRecordService {
    MedicalInsuranceRecord createRecord(MedicalInsuranceRecord record, Long operatorId);
    MedicalInsuranceRecord updateRecord(Long id, MedicalInsuranceRecord record, Long operatorId);
    void deleteRecord(Long id, Long operatorId);
    MedicalInsuranceRecord getRecordById(Long id);
    Page<MedicalInsuranceRecord> getAllRecords(Pageable pageable);
    Page<MedicalInsuranceRecord> searchRecords(Specification<MedicalInsuranceRecord> spec, Pageable pageable);
    List<MedicalInsuranceRecord> createRecordsBatch(List<MedicalInsuranceRecord> records, Long operatorId);
}